package Vehicle;

import java.util.Scanner;
class Vehicle {
    private String platNo;
    private int wheelbase;

    public Vehicle() {
    }

    public Vehicle(String platNo, int wheelbase) {
        this.platNo = platNo;
        this.wheelbase = wheelbase;
    }

    public void show() {
        System.out.println("车牌号：" + platNo);
        System.out.println("轴距：" + wheelbase);
    }

}

class Bus extends Vehicle{
    private int passengers;
    public Bus(){
    }
    public Bus(String platNo,int wheelbase,int passengers){
        super(platNo,wheelbase);
        this.passengers=passengers;

    }
    public void show(){
        super.show();
        System.out.println("限载人数："+passengers);
    }
}
public class Main{
    public static void main(String[] args) {
        Scanner reader=new Scanner(System.in);
        String platNo=reader.next();
        int wheelbase=reader.nextInt();
        Vehicle objVehicle=new Vehicle(platNo,wheelbase);
        System.out.println("车辆信息如下：");
        objVehicle.show();
        platNo=reader.next();
        wheelbase=reader.nextInt();
        int passengers=reader.nextInt();
        Bus objBus=new Bus(platNo,wheelbase,passengers);
        System.out.println("客车信息如下：");
        objBus.show();

    }
}
